package creation.abstractFactory;



public class OrderPizza extends Object{
    Pizza orderPizza(AbFactory factory, String name){
        Pizza pizza = factory.createPizza(name);
        if(pizza != null){
            pizza.prepare();
            pizza.baker();
            pizza.cut();
            pizza.box();
        }
        return pizza;
    }
}


